package com.edu.bean;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class User {

    private int userId;

    private String username;

    private String password;

    private Date birthday;

    private boolean isMarried;

    private Car car;

    private Phone phone;

    private List<String> phoneNums;

    private List<Shoe> shoes;

    private Map<String,String> relations;

    public Map<String, String> getRelations() {
        return relations;
    }

    public void setRelations(Map<String, String> relations) {
        this.relations = relations;
    }

    public List<Shoe> getShoes() {
        return shoes;
    }

    public void setShoes(List<Shoe> shoes) {
        this.shoes = shoes;
    }

    public List<String> getPhoneNums() {
        return phoneNums;
    }

    public void setPhoneNums(List<String> phoneNums) {
        this.phoneNums = phoneNums;
    }

    public Phone getPhone() {
        return phone;
    }

    public void setPhone(Phone phone) {
        this.phone = phone;
    }

    public Car getCar() {
        return car;
    }
    //Car->car
    public void setCar(Car car) {
        this.car = car;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public boolean isMarried() {
        return isMarried;
    }

    public void setMarried(boolean married) {
        isMarried = married;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public User() {
        System.out.println("执行了无参数构造方法");
    }


    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", birthday=" + birthday +
                ", isMarried=" + isMarried +
                ", car=" + car +
                ", phone=" + phone +
                ", phoneNums=" + phoneNums +
                '}';
    }


}
